 TITL PTDOS TXTMODEM DRIVER VERS.1.02 BY Martin Eberhard

*******************************************************
* COMBINED SOURCE CODE FOR XMODEM AND TXTMODEM
* WITH SWITCHES SET FOR TXTMODEM
*
* TXTMODEM: TEST FILE XMODEM DEVICE DRIVER FOR PTDOS
*   (Assemble with TXTMO = TRUE)
*   Send/receive ASCII files using XMODEM protocol.
*
*   On  reception, delete linefeeds and MSDOS EOFs.
*
*   On transmission, insert a linefeed after every CR
*   and pad last block with MSDOS EOFs.
*
* By MARTIN EBERHARD
* Supports both checksum and CRC error checking.
* Written to be assembled with PT's ASSM
*
* Note: PTDOS expects file lengths to be exact - there
* is no real EOF character Unfortunately, the Xmodem
* protocol only allows 128-byte blocks - so every file
* will be a multiple of 128 bytes. This driver pads
* the end with 1AH, (MSDOS's EOF character) when
* sending a file. When receiving a file, these EOF
* characters get stripped off, so PTDOS is happy.
*
* The Sol-20 LOCAL key will cause its serial port data
* output to be shunted to its input, rather than to
* the external connector. This code tests for the LOCAL
* key 'ON' by looking for serial port output echoed at
* its input at the beginning of the Xmodem transfer. If
* the LOCAL appears to be 'ON', the user is asked to
* turn it off.
*
*  VERS     DATE     NOTE
*  1.01   11FEB2013  CREATED
*  1.02   02MAR2015  Better LOCAL key message
*
*******************************************************
TRUE EQU 1
FALSE EQU 0

 COPY TXTMHD.A  ;GATHER HEADER FILE
 COPY XMODMN.A  ;XMODEM MAIN ROUTINES
 COPY XMODSB.A  ;XMODEM SUBROUTINES
 COPY XMODST.A  ;XMODEM STRINGS

 END

